﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FDStudio.Core.Entities
{
    /*
     CreatedOn: 2018-02-25
     CreatedBy: Jackie Lee(天宇遊龍)
     */
    /// <summary>
    /// service请求结果
    /// </summary>
    public interface IServiceResult : IComm
    {
        /// <summary>
        /// 消息
        /// </summary>
        string Message { get; set; }

        /// <summary>
        /// 是否成功
        /// </summary>
        bool Success { get; }

    }

    /// <summary>
    /// 含有结果的api请求结果
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IServiceResult<T> : IServiceResult
    {
        /// <summary>
        /// 结果
        /// </summary>
        T Result { get; }
    }
}
